package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ViewController {
    //    页面控制器
    @RequestMapping("/magic")//加载页面
    public String magic() {
        return "magic";
    }


    @RequestMapping("/mainPage")//这里是主页
    public String ands() {
        return "mainPage";
    }


//    视图控制器

    @GetMapping(value = "ismobileview")
    public String showMobile()  {
        return "view-ismobile";
    }//用户终端饼图

    @GetMapping(value = "userlevelview")
    public String showuserlevel() {
        return "view-userlevel";
    }//用户等级柱状图

    @GetMapping(value = "kwview")
    public String showkw() {
        return "view-kw";
    }//词云

    @GetMapping(value = "test")
    public String showtest() {
        return "test";
    }//测试用例

    @GetMapping(value = "daysview")
    public String showdays() {
        return "view-days";
    }//折线图

    @GetMapping(value = "static")
    public String showstatic() {
        return "static";
    }//测试用例

    @GetMapping(value = "creationview")
    public String showcreation() {
        return "view-creation";
    }//创建时间

    @GetMapping(value = "scoreview")
    public String showscore() {
        return "view-score";
    }//分数表


}